package itsm.isperp.module.service.app;

import itsm.isperp.framework.service.BaseService;
import itsm.isperp.module.entity.app.AppLdapConfig;
import itsm.isperp.module.repository.app.AppLdapConfigMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务
 * 
 * @author lizx
 * @date 2014-09-11 22:29
 */
@Service
public class AppLdapConfigService extends BaseService<AppLdapConfig> {

	@Autowired
	protected AppLdapConfigMapper appLdapConfigMapper;

	@Override
	public AppLdapConfigMapper getRepository() {
		return this.appLdapConfigMapper;
	}

	/**
	 * 根据客户id获取域配置信息
	 * 
	 * @param customerId
	 *            客户id
	 * @return 域配置信息
	 */
	public AppLdapConfig findByCustomerId(String customerId) {
		return this.getRepository().findByCustomerId(customerId);
	}

}
